// 日报告请求参数
export interface DayReportParams {
  date: string; // 日期，如 "today"
}

// 日报告统计项
export interface StatisticsItem {
  title: string;
  number: string;
  color: string;
}

// 员工统计项
export interface YuangongStatisticsItem {
  amount: string;
  top: number;
  number: string;
  name: string;
}

// 收入类型项
export interface IncomeTypeItem {
  value: number;
  name: string;
  disabled: boolean;
}

// 收入统计信息
export interface StatisticsIncome {
  total_income: string;
  income_type: IncomeTypeItem[];
  income_type_list: IncomeTypeItem[];
}

// 日报告响应数据
export interface DayReportResponseData {
  statistics: StatisticsItem[];
  yuangong_statistics: YuangongStatisticsItem[];
  total_yingshou: string;
  statistics_income: StatisticsIncome;
}

// 七日销售趋势请求参数
export interface DailyDataParams {
  date: string[]; // 日期范围数组，如 ["2025-06-12", "2025-06-18"]
}

// 七日销售趋势响应数据
export interface DailyDataResponseData {
  date: string[]; // 请求的日期范围
  X_data: string[]; // 横轴数据，如 ["06-12", "06-13", ...]
  Y_today_data: number[]; // 今日数据系列
  Y_all_data: number[]; // 全部数据系列
}

// 日报告响应
export interface DayReportResponse {
  code: number;
  msg: string;
  time: string;
  data: DayReportResponseData;
}

// 七日销售趋势响应
export interface DailyDataResponse {
  code: number;
  msg: string;
  time: string;
  data: DailyDataResponseData;
}

// 月度报告请求参数
export interface MonthlyReportParams {
  date: string; // 日期，如 "today"
}

// 小卡片数据项
export interface SmallCard {
  title: string;
  number: number | string;
  textColor: string;
  numberColor: string;
}

// 月度报告名称项
export interface MonthlyReportNameItem {
  title: string;
  iconColor: string;
  textColor: string;
  numberColor: string;
  percentColor: string;
  number: number;
  isProblemisProblem: boolean;
  problemText: string;
  smallCards?: SmallCard[];
}

// 收入类型项（月度报告）
export interface MonthlyIncomeTypeItem {
  value: number;
  name: string;
  disabled: boolean;
}

// 月度报告收入统计
export interface MonthlyStatisticsIncome {
  total_income: string;
  income_type: MonthlyIncomeTypeItem[];
}

// 月度报告响应数据
export interface MonthlyReportResponseData {
  name: MonthlyReportNameItem[];
  statistics_income: MonthlyStatisticsIncome;
  yuangong_statistics: any[];
}

// 月度报告响应
export interface MonthlyReportResponse {
  code: number;
  msg: string;
  time: string;
  data: MonthlyReportResponseData;
}

// 营收数据项
export interface YingshouDataItem {
  category_name: string;
  huozhu_name: string;
  pici_name: string;
  goods_name: string;
  sale_num: number;
  goods_total_price: number;
  average_price: number;
  goods_price_lc: number;
  total_price: number;
  力资: number;
  开票: number;
  押金: number;
  收费名字: number;
}

// 附加费名称列表项
export interface FujiafeiNameItem {
  id: number;
  name: string;
  rate: number;
  type: string;
  method: string;
  shouyin_id: number;
  time: string;
  admin_id: number;
  total: number;
}

// 营收报告响应数据
export interface YingshouReportResponseData {
  fujiafei_name_list: FujiafeiNameItem[];
  yingshou: YingshouDataItem[];
  cardData: any; // 卡片数据，结构复杂，暂时用any
}

// 营收报告响应
export interface YingshouReportResponse {
  code: number;
  msg: string;
  time: string;
  data: YingshouReportResponseData;
}
